package com.handinglian.servicerecord.service;

import com.handinglian.common.dto.CommonPage;
import com.handinglian.servicerecord.dto.MessageTemplateDto;
import com.handinglian.servicerecord.param.MessageTemplateCreateParam;
import com.handinglian.servicerecord.param.MessageTemplateUpdateParam;

import java.util.concurrent.Future;

public interface MessageTemplateService {
    int create(MessageTemplateCreateParam createParam, Integer userId);

    int update(MessageTemplateUpdateParam updateParam);

    int delete(Integer id);

    MessageTemplateDto get(Integer id);

    CommonPage<MessageTemplateDto> list(String nameOrContent, String sortField, String sortOrder, Integer pageNum, Integer pageSize);

    Future<Integer> count();
}
